//
//  KDLoginTool.h
//  WangJingApp
//
//  Created by 魏强 on 17/2/14.
//  Copyright © 2017年 KDTech. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "KDBaseParam.h"
#import "KDBaseResult.h"
@class KDUserInfo;
@class KDUpdatePwdParam;
@class KDUpdateImgParam;
@interface KDLoginTool : NSObject
/**
 *  退出登陆请求
 */
+ (void)logoutWithParam:(KDBaseParam *)param success:(void (^)(KDBaseResult *responseObejct))success failure:(void(^)(NSError *error))failure;

/**  获取用户信息 */
+ (void)getUserInfoWithParam:(KDBaseParam *)param success:(void (^)(KDBaseResult *responseObejct))success failure:(void(^)(NSError *error))failure;
/**  更新密码 */
+ (void)updatePwdWithParam:(KDUpdatePwdParam *)param success:(void (^)(KDBaseResult *responseObejct))success failure:(void(^)(NSError *error))failure;
/**  更新用户头像的接口 */
+ (void)updateImgWithParam:(KDUpdateImgParam *)param success:(void (^)(KDBaseResult *responseObejct))success failure:(void(^)(NSError *error))failure;

/**  获取用户头像 */
+ (void)getUserAvatarWithParam:(KDUpdateImgParam *)param success:(void (^)(KDBaseResult *responseObejct))success failure:(void(^)(NSError *error))failure;
@end
